package main;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

import control.MyControl;

public abstract class FormCanvas extends Canvas{
	protected MyControl controls;
	protected MainMidlet midlet;
	public FormCanvas(MainMidlet midlet) {
		this.midlet = midlet;
	}
	protected void pointerPressed(int x, int y) {
		controls.pointerPressed(x, y);
	}
	
	protected void pointerReleased(int x, int y) {
		controls.pointerReleased(x, y);
	}
	
	protected void pointerDragged(int x, int y) {
		controls.pointerDragged(x, y);
	}
	protected void paint(Graphics g) {
		controls.paint(g);
	}

}
